/*
 * @Author: your name
 * @Date: 2021-11-05 14:27:02
 * @LastEditTime: 2021-12-06 17:49:41
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \star-cat-h5\src\axios\api.js
 */
let Url = "/api"
import { get, post } from './request'
const Apis = {
    /// 获取个人信息
    getAdminInfoByCode: Url + '/backend/qywechat/Qywechat/getAdminInfoByCode',
    /// 获取审批列表
    getIsReviewList: Url + '/backend/business/Review/isReviewList',
    /// 获取审批详情
    getReviewDetail: Url + '/backend/business/Review/reviewDetail',
    /// 审核
    postReview: Url + '/backend/business/Review/review',
    getCustomerDetail: Url + '/backend/business/Customer/getCustomerDetailh5',
    getCollectionDetail: Url + '/backend/business/Collection/infoh5'
}

export function getAdminInfoByCode(params) {
   return  get(Apis.getAdminInfoByCode, params)
}
//定义接口
const API = {
    getIsReviewList: (params) => get(Apis.getIsReviewList, params),
    getReviewDetail: (params) => get(Apis.getReviewDetail, params),
    postReview: (params) => post(Apis.postReview, params),
    getCustomerDetail: (params) => get(Apis.getCustomerDetail, params),
    getCollectionDetail: (params) => get(Apis.getCollectionDetail, params),
}

function install(Vue) {
    Vue.prototype.$request = API;
}
export default install